package com.ithuameng.admin.app.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ithuameng.admin.app.system.model.SequenceRule;
import com.ithuameng.admin.app.system.model.admin.qo.SequenceRuleQo;
import com.ithuameng.admin.enums.SequenceType;

/**
 * Sequence rule service
 * 
 * @author ithuameng
 *
 */
public interface ISequenceRuleService extends IService<SequenceRule> {

	/**
	 * 根据类型获取流水号规则
	 * 
	 * @param type 类型
	 * @return 流水号规则
	 */
	SequenceRule getSeqRuleByType(SequenceType type);

	/**
	 * 获取流水号规则分页列表
	 * @param page 分页条件
	 * @param sequenceRuleQo 查询条件
	 * @return 分页结果数据
	 */
    IPage<SequenceRule> listSequenceRule(Page<SequenceRule> page, SequenceRuleQo sequenceRuleQo);
}
